import json

class ReadJson:
    def read_json(filename):
        filepath = "../data/" + filename
        with open(filepath,mode="r",encoding="utf_8") as f:
            data1 = []
            datas = json.load(f)
            for data in datas.values():
                data1.append((data["case"],data["num1"],data["num2"],data["expect"]))
        return data1